package client;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by Peter on 2017/6/30.
 */
public class ClientHandler extends ChannelHandlerAdapter {

    private static Logger logger = LoggerFactory.getLogger(ClientHandler.class);

    public void channelActive(ChannelHandlerContext ctx) throws Exception {
    }

    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        logger.info("断开连接 channelInactive --- " + ctx.channel().remoteAddress().toString());
    }
}
